import type { FC } from 'react';
import { useSafeState } from 'ahooks';
import Slider from '../slider';
import { getYears } from './helper';

const Dates: FC = () => {
  const [items, setItems] = useSafeState(getYears(20));

  return (
    <Slider items={items} />
  )
}

export default Dates;